<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./扁平化.js"></script>
</head>

<body>
    <script>
        const res1 = flatten1([3, 8, [4, 5, [6, 7]]])
        const res2 = flatten2([3, 8, [4, 5, [6, 7]]])
        const res3 = flatten3([3, 8, [4, 5, [6, 7]]])
        const res4 = flatten4([3, 8, [4, 5, [6, 7]]])
        const res5 = flatten5([3, 8, [4, 5, [6, 7]]])
        const res6 = flatten6([3, 8, [4, 5, [6, 7]]])
        console.log("flatten1----" + res1)
        console.log("flatten2----" + res2)
        console.log("flatten3----" + res3)
        console.log("flatten4----" + res4)
        console.log("flatten5----" + res5)
        console.log("flatten6----" + res6)
    </script>

</body>

</html>